package com.business.service.interfaced.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.business.service.interfaced.HeadlinesInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/**
 * 头条接口
 * @Function 
 * @Author zhaozhenhua
 * @Date 2018年4月9日
 */
@Service("headlinesInService")
public class HeadlinesInService implements HeadlinesInManager{

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	/**
	 * 获取所有的菜单项
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getCaiDanList(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("HeadlinesInMapper.getCaiDanList", pd);
	}

	/**
	 * 根据菜单ID获取头条信息列表
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getHeadlinesById(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("HeadlinesInMapper.getHeadlinesById", pd);
	}


	
	
}

